<?
	//HOME TOP LINK TO BACK
	$HomeLink = "<a href=\"".$root."/trang-chu/\">Trang chủ</a>";
	if(isset($_GET['cid'])){
		$cid = intval($_GET['cid']);
		$rs = $db->query("SELECT * FROM ".$prefix."loaisanpham WHERE c_id = '".$cid."' AND c_hienthi = 1");
		if($db->num_rows($rs) != 0){
			$row = $db->fetch_array($rs);
			
			if($row[c_id_cha] == 0){
				$cat_name = stripslashes($row[c_ten]);
				$cat_id = $row[c_id];
				$HomeLink .= " &raquo; ".$cat_name."";
			}else{
				$c_name = stripslashes($row[c_ten]);
				$cat_id = $row[c_id_cha];
				$rs2 = $db->query("SELECT * FROM ".$prefix."loaisanpham WHERE c_id = '".$cat_id."' AND c_hienthi = 1");
				$row2 = $db->fetch_array($rs2);
				$cat_name = stripslashes($row2[c_ten]);
				$HomeLink .= " &raquo; <a class=\"linkPath\" href=\"".$root."/danh-muc-san-pham/".$cat_id."/".$myString->vietdecode($cat_name)."\">".$cat_name."</a>  &raquo; ".$c_name."";
			}
		}else{echo $reHome;}
	}else{echo $reHome;}
	
?>
<div id="linkPath">

<div class="linkPath">
    <div class="corner-round-01-top-right">
        <div class="corner-round-01-top-left">
            <div class="corner-round-01-top-bg"></div>
        </div>
    </div>
	
    <div class="corner-round-01-body">    
        <span style="float: left;"><?=$HomeLink?></span>

        <?
			file_exist('includes/inc_thong_tin_rieng.php');
			include('includes/inc_thong_tin_rieng.php');
		?>
		
        <div style="clear: both;"></div>

    </div>
	
    <div class="corner-round-01-bottom-right">
        <div class="corner-round-01-bottom-left">
            <div class="corner-round-01-bottom-bg"></div>
        </div>
    </div> 
	  
</div>

    </div>
    <!-- Main Page-Content { -->    
    <div id="page-content">            
        <div id="page-content-lpane">                        
            

<!-- Menu Left { -->
	<?
		file_exist('includes/chungloai/inc_menu_left.php');
		include('includes/chungloai/inc_menu_left.php');
	?>
<!-- } Menu Left -->
            
            



<!-- QUANG CAO -->

	<?
		file_exist('includes/chungloai/inc_quangcao.php');
		include('includes/chungloai/inc_quangcao.php');
	?>

<!-- QUANG CAO END -->

 <?
		file_exist('includes/chungloai/inc_tukhoa.php');
		include('includes/chungloai/inc_tukhoa.php');
?>                       
            
            
<!-- FiltersBox { -->
	
	<?
		file_exist('includes/chungloai/inc_timkiem.php');
		include('includes/chungloai/inc_timkiem.php');
	?>

<!-- } FiltersBox --> 


	<!-- SHOP TIEU BIEU -->
	<?
		file_exist('includes/chungloai/inc_shop_tieu_bieu_left.php');
		include('includes/chungloai/inc_shop_tieu_bieu_left.php');
	?>
	<!-- END SHOP TIEU BIEU -->  


  </div>
  
  <!-- END LEFT - BEGIN MAIN -->

<div id="page-content-mpane-all">
            
			<!-- PRODUCT TOP -->
			
			<? 
				file_exist('includes/chungloai/inc_top_product.php');
				include('includes/chungloai/inc_top_product.php');
			?>
			
			<!-- END PRODUCT TOP -->

            
            <!-- CONTENT -- >
			
			<? 
				file_exist('includes/chungloai/inc_home.php');
				include('includes/chungloai/inc_home.php');
			?>
			
			<!-- CONTENT -->


                              
        </div>                
    </div>
    <div style="clear:both;"></div>      
    <!-- } Main Page-Content -->  
	<?
		$qc_kieuchungloai = 0;
		file_exist('includes/inc_quangcao_bottom.php');
		include('includes/inc_quangcao_bottom.php');
	?>
          
</div>
